{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="__PUBLIC_ADMIN__css/plugins/summernote/summernote.css" rel="stylesheet">
<link href="__PUBLIC_ADMIN__css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>检查整改</h5>
                        <div class="ibox-tools">
                            <a href="{:url('admin/Hunanconstr/RectificationList')}" class="btn btn-primary btn-xs">返回列表</a>
                        </div>
                    </div>
                        
                    <div class="ibox-content">
                        <form action="{:url('admin/Hunanconstr/Rectificationas')}" method="post" id="company_add" class="form-horizontal" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{$id}" />
                        	<div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">整改措施</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" value="{$res.describe}" name="describe" required="required">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">整改图片</label>
                                <div class="col-sm-10">
                                    <div class="up" style="margin-left: 15px;">
                                        <input type="file" name="img[]" class="one" id="image1">
                                        <div id="preview1" >
                                            <img src="" alt="">
                                        </div>
                                    </div>
                                    <div class="up" style="margin-left: 15px;">
                                        <input type="file" name="img[]" class="two" id="image2">
                                        <div id="preview2" >
                                            <img src="" alt="">
                                        </div>
                                    </div>
                                    <div class="up" style="margin-left: 15px;">
                                        <input type="file" name="img[]" class="three" id="image3">
                                        <div id="preview3" >
                                            <img src="" alt="">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button id="submit" class="btn btn-primary" type="submit">保存内容</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

        
    {include file="public/hunanconstr_footer" /}
	
	<!-- 富文本 -->
	<!-- SUMMERNOTE -->
    <script src="__PUBLIC_ADMIN__js/plugins/summernote/summernote.min.js"></script>
    <script src="__PUBLIC_ADMIN__js/plugins/summernote/summernote-zh-CN.js"></script>
	
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    
    <!-- iCheck -->
    <script src="__PUBLIC_ADMIN__js/plugins/iCheck/icheck.min.js"></script>
    
    <!-- 表单验证  -->
    <script>
    /*
    $('#company_add').validate({
        // 每一个name值对应一组规则
        company_name: {
            required: true,
            rangelength: [4,10],
            remote: ''    // ajax请求地址
        },
        email: {
            required: true,
            email: true
        }
    });
    */
    </script>
    <script>
        $(document).ready(function() {
        	$('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
			
            $('.refresh').click(function(){
            	window.location.reload();	// 刷新页面
            })
            
          	//iframe窗
          	$('.edit').click(function(){
          		var index = layer.open({
          			type : 2,
					fixed: true,
					scrollbar: false,
					title : '很多时候，我们想最大化看，比如像这个页面。',
					shadeClose : false,
					maxmin : true, //开启最大化最小化按钮
					area : ['893px', '600px'],
					//offset: '100px',
					content : '//www.wei-yong.com'
          		});
          		layer.full(index);
          	})
		});
	</script>
	<script>
        $(document).ready(function () {

            $('.summernote').summernote({
                lang: 'zh-CN'
            });

        });
        var edit = function () {
            $("#eg").addClass("no-padding");
            $('.click2edit').summernote({
                lang: 'zh-CN',
                focus: true
            });
        };
        var save = function () {
            $("#eg").removeClass("no-padding");
            var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
                        
            $('.click2edit').destroy();
        };
    </script>
</body>
</html>
